From: Emmanuele Bassi Date: Thu, 28 Oct 2021 17:17:02 +0000 (+0100) Subject: Add editorconfig file X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~91^2^2~201^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f1fbd363f8dcb955672e4b51ce4901fd6751296e;p=gtk4.git Add editorconfig file Editors that support configuration through the editorconfig spec: https://editorconfig.org should be able to have a subset of the GTK coding style and options immediately available to them. Plus, it's better than using relics from the Dark Ages, like modelines. --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..1e43ac89d5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2021 The GTK Authors +# SPDX-License-Identifier: CC0-1.0 + +root = true + +[*] +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true + +[*.[ch]] +indent_size = 2 +indent_style = space +insert_final_newline = true +# For the legacy tabs which still exist in the code: +tab_width = 8 + +[*.ui] +indent_size = 2 +indent_style = space +insert_final_newline = true + +[*.xml] +indent_size = 2 +indent_style = space + +[meson.build] +indent_size = 2 +indent_style = space + +[*.md] +max_line_length = 80